package com.zhsj.OkeHomeConsumption.common;


import com.zhsj.OkeHomeConsumption.other.PackageUtils;
import com.zhsj.OkeHomeConsumption.utils.SharedPreferanceUtils;

/**
 * @author xingdx
 * @ClassName: Constants
 * @Description: TODO 悦消费 App 应用配置常量类
 * @date 2019年8月9日 上午9:50:50
 */
public class Constants {

    // 用户登录时返回的TOKEN
    public static String TOKEN = new SharedPreferanceUtils(MyApplication.getContext()).getToken();
    // sign
    public static String SIGN = "";
    public static String APP_ID = "wx5e0195b1006eb3e8";
    /**
     * 超时时间
     */
    public static final int TIME_OUT = 10;

    //会员标示（区域运营商或者商家提取保证金后如果是在会员页面 会无限跳转）
    public static String MEMBER_FLAGE ="member_flage";

    // 表示token过期
    public static String STATUSTOKENERROR = "10161002";
    // 手机平台 2 代表Android
    public static String PLAFORM = "2";
    //成为城市合伙人合伙人意愿关系
    public static String CITYDESIRETYPE = "0";
    //成为店铺合伙人意愿关系
    public static String SHOPDESIRETYPE = "1";
    // 设备token {用于友盟push}
    public static String DEVICETOKEN = new SharedPreferanceUtils(MyApplication.getContext()).getDeviceToken();
    // devicetoken (umeng push)
    public static final String SHARED_PERFERENCE_DEVICETOKEN = "devicetoken";
    // rongyuntoken (rongyun im)
    public static final String SHARED_PERFERENCE_RONGYUNTOKEN = "rongtoken";
    //  app客户端版本号
    public static String APPVERSION = PackageUtils.getVersionName(MyApplication.getContext());
    // 当前手机的设备型号
    public static String MOBILEMODEL = android.os.Build.MODEL;
    // 当前时间
    public static String Times = System.currentTimeMillis() / 1000L + "";
    // 默认时间
    public static String TIME = Times;
    // 参数名：client，0表示客户端，1表示合伙人端
    public static String CLIENT = "2";
    /**
     * 保存用户信息
     */
    public static final String SHARED_PERFERENCE_USERINFO = "userinfo";
    /**
     * app打开次数
     */
    public static final String SHARED_PREFERENCE_NAME = "okehome.shared";
    /**
     * SharedPreference中所存储的Token 初始化token
     */
    public static final String SHARED_PERFERENCE_TOKEN = "token";
    //是否已登录
    public static final String SHARED_PREFERENCE_ISLOGIM = "isLogin";
    /**
     * @Fields SHARED_PERFERENCE_SELECTCITY : TODO
     */
    public static final String SHARED_PERFERENCE_SELECTCITY = "selectcity";
    // 城市id
    public static final String SHARED_PERFERENCE_SELECTCITYID = "selectcityid";
    // 省份id
    public static final String SHARED_PERFERENCE_PROVINCEID = "provinceId";
}